package com.unitd.frame.sso.common.statistic;

import javax.servlet.http.HttpServletRequest;

/**
 * @desc SSO 在线人数统计接口
 * @filename ISSOStatistic.java
 * @copyright www.unitd.com
 * @author Hudan
 * @version 1.0
 * @date 2016/10/18
 */
public interface ISSOStatistic {

	/**
	 * @desc 在线人数+1
	 * @param request 登录请求
	 * @return boolean
	 */
	boolean increase(HttpServletRequest request);

	/**
	 * @desc 在线人数 -1
	 * @param request 退出请求
	 * @return boolean
	 */
	boolean decrease(HttpServletRequest request);

	/**
	 * @desc 获取在线人数
	 * @param request 查询请求
	 * @return String
	 */
	String count(HttpServletRequest request);
}